class Person(object):

    def __init__(self, hobbys):
        self.hobbys = hobbys

    """析构函数,对象从内存中销毁前, 会被自动调用"""
    def __del__(self):
        print("del")

person = Person(['篮球', '足球', '乒乓球'])